package com.wntms.ywa.service.impl;


import com.wntms.ywa.dao.PostDao;
import com.wntms.ywa.pojo.CustomerInformation;
import com.wntms.ywa.service.PostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class PostServiceImpl implements PostService {
    @Autowired
    private PostDao postDao;


    @Override
    public void addCustomerout(CustomerInformation customerInformation) {

        postDao.addCustomerout(customerInformation);
    }

    @Override
    public CustomerInformation findById(Integer id) {
        return postDao.findById(id);
    }
}
